<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            display: grid;
            grid-template-columns: 200px auto 200px;
            grid-template-rows: 100px 400px 100px;
            grid-template-areas: 'h h h'
                                 'r c l'
                                 'f f f';
        }
        header,
        footer {
            /* grid-column-start:1;
            grid-column-end:4; */
            /* 简写： */
            /* grid-column: 1/4; */
            background-color: pink;
        }
        header {
            grid-area: h;
        }
        footer {
            grid-area: f;
        }
        .left {
            background-color: red;
            grid-area: l;
        }
        .right {
            background-color: orange;
            grid-area: r;
        }
        article {
            background-color: green;
            grid-area: c;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>头部</header>
        <div class="left">左侧</div>
        <article>中间</article>
        <div class="right">右侧</div>
        <footer>底部</footer>
    </div>
</body>
</html>